package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WorkerViewMapper;
import com.ruoyi.system.domain.WorkerView;
import com.ruoyi.system.service.IWorkerViewService;

/**
 * VIEWService业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
@Service
public class WorkerViewServiceImpl implements IWorkerViewService 
{
    @Autowired
    private WorkerViewMapper workerViewMapper;

    /**
     * 查询VIEW
     * 
     * @param id VIEW主键
     * @return VIEW
     */
    @Override
    public WorkerView selectWorkerViewById(Long id)
    {
        return workerViewMapper.selectWorkerViewById(id);
    }

    /**
     * 查询VIEW列表
     * 
     * @param workerView VIEW
     * @return VIEW
     */
    @Override
    public List<WorkerView> selectWorkerViewList(WorkerView workerView)
    {
        return workerViewMapper.selectWorkerViewList(workerView);
    }

    /**
     * 新增VIEW
     * 
     * @param workerView VIEW
     * @return 结果
     */
    @Override
    public int insertWorkerView(WorkerView workerView)
    {
        return workerViewMapper.insertWorkerView(workerView);
    }

    /**
     * 修改VIEW
     * 
     * @param workerView VIEW
     * @return 结果
     */
    @Override
    public int updateWorkerView(WorkerView workerView)
    {
        return workerViewMapper.updateWorkerView(workerView);
    }

    /**
     * 批量删除VIEW
     * 
     * @param ids 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteWorkerViewByIds(Long[] ids)
    {
        return workerViewMapper.deleteWorkerViewByIds(ids);
    }

    /**
     * 删除VIEW信息
     * 
     * @param id VIEW主键
     * @return 结果
     */
    @Override
    public int deleteWorkerViewById(Long id)
    {
        return workerViewMapper.deleteWorkerViewById(id);
    }
}
